package responsibilitychain;

import lombok.extern.slf4j.Slf4j;

/**
 * @author zenghy
 **/
@Slf4j
public class MaleFilter implements IFilter {
    @Override
    public boolean doFilter(IRequest request) {
        log.info("only male accepted");
        return true;
    }

    @Override
    public boolean support(Class<? extends IRequest> clz) {
        return clz.isAssignableFrom(MaleRequest.class);
    }
}
